//登录接口需要携带参数ts类型
export interface loginForm {
  username: string;
  password: string;
}

/**
 * 登录接口返回的数据类型
 */
export interface loginResponseData {
  code: number;
  data: Data;
  message: string;
}

export interface Data {
  token?: string;
  user: User;
}

export interface User {
  createTime: CreateTime;
  createUserId: number;
  email: string;
  headUrl: string;
  name: string;
  password: string;
  phone: string;
  status: number;
  updateTime: UpdateTime;
  userId: number;
  username: string;
}

export interface CreateTime {
  chronology: CreateTimeChronology;
  dayOfMonth: number;
  dayOfWeek: string;
  dayOfYear: number;
  hour: number;
  minute: number;
  month: string;
  monthValue: number;
  nano: number;
  second: number;
  year: number;
}

export interface CreateTimeChronology {
  calendarType: string;
  id: string;
}

export interface UpdateTime {
  chronology: UpdateTimeChronology;
  dayOfMonth: number;
  dayOfWeek: string;
  dayOfYear: number;
  hour: number;
  minute: number;
  month: string;
  monthValue: number;
  nano: number;
  second: number;
  year: number;
}

export interface UpdateTimeChronology {
  calendarType: string;
  id: string;
}
//___________________________________________________________________________________

//定义服务器返回用户信息相关的数据类型

/**
 * Request
 */
export interface userResponseData {
  code: number;
  data: userInfo;
  message: string;
}

export interface userInfo {
  createTime: string;
  createUserId: number;
  email: string;
  headUrl: string;
  name: string;
  password: string;
  phone: string;
  status: number;
  updateTime: string;
  userId: number;
  username: string;
}
